package com.hw.springcloud.service;

import com.hw.springcloud.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname: OrderStorageService
 * @Description: 订单调用库存服务
 * @Date: 2021/12/22
 * @Author: HuWei
 */
@FeignClient("cloudalibaba-seata-storage-serve")
public interface OrderStorageService {

    @GetMapping("/storage/updateStorage/{productId}/{userNum}")
    CommonResult<Boolean> updateStorage(@PathVariable("productId")Long productId,@PathVariable("userNum")Integer userNum);
}